package com.ruoyi.orders.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 订单改派对象 t_order_redirect
 * 
 * @author ruoyi
 * @date 2025-08-19
 */
public class TOrderRedirect extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 改派记录ID，自增主键 */
    private Long redirectId;

    /** 订单ID */
    @Excel(name = "订单ID")
    private Long orderId;

    /** 接单司机 */
    @Excel(name = "接单司机")
    private String originalDriver;

    /** 改派司机 */
    @Excel(name = "改派司机")
    private String newDriver;

    /** 改派原因 */
    @Excel(name = "改派原因")
    private String redirectReason;

    /** 改派时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "改派时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date redirectTime;

    /** 操作人 */
    @Excel(name = "操作人")
    private String operator;

    public void setRedirectId(Long redirectId) 
    {
        this.redirectId = redirectId;
    }

    public Long getRedirectId() 
    {
        return redirectId;
    }

    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }

    public void setOriginalDriver(String originalDriver) 
    {
        this.originalDriver = originalDriver;
    }

    public String getOriginalDriver() 
    {
        return originalDriver;
    }

    public void setNewDriver(String newDriver) 
    {
        this.newDriver = newDriver;
    }

    public String getNewDriver() 
    {
        return newDriver;
    }

    public void setRedirectReason(String redirectReason) 
    {
        this.redirectReason = redirectReason;
    }

    public String getRedirectReason() 
    {
        return redirectReason;
    }

    public void setRedirectTime(Date redirectTime) 
    {
        this.redirectTime = redirectTime;
    }

    public Date getRedirectTime() 
    {
        return redirectTime;
    }

    public void setOperator(String operator) 
    {
        this.operator = operator;
    }

    public String getOperator() 
    {
        return operator;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("redirectId", getRedirectId())
            .append("orderId", getOrderId())
            .append("originalDriver", getOriginalDriver())
            .append("newDriver", getNewDriver())
            .append("redirectReason", getRedirectReason())
            .append("redirectTime", getRedirectTime())
            .append("operator", getOperator())
            .toString();
    }
}
